shared.factory('URLService', function () {
    var head = "";
    // var head = "http://10.170.120.57:7300/mock/5aa7675f919d410cb47f1524";
    // var head = "http://10.168.17.68:8080";

    var urlMap = {
        login: '/service-center/login',
        token: '/service-center/token',
        modifyPassword: '/service-center/modifyPassWord',
        logout: '/service-center/logout',

        getApps: '/service-center/getApps',
        getConfigData: '/service-center/getItems',
        updateConfigData: '/service-center/updateItemValue',
        publishConfig: '/service-center/publishConfig',

        readEmsProxy: '/service-center/getEmsConfig',
        addEmsConfig: '/service-center/addEmsConfig',
        updateEmsConfig: '/service-center/updateEmsConfig',
        deleteEmsConfig: '/service-center/deleteEmsConfig',
        syncEms: '/service-center/syncEms',
        publishEms: '/service-center/publishEms',

        importConifg: '/service-center/importConifgData',
        exportConfig: '/service-center/exportConifgData',
        batchRelease: '/service-center/publishAll',

        serverStatusInfo: '/service-center/queryStaticServerInfo'
    };

    return {
        getURL: function (name) {
            return head + urlMap[name];
        }
    }
});